emojichooser: Drop focus adjustment setting
authorMatthias Clasen <mclasen@redhat.com>
Thu, 16 Apr 2020 19:46:27 +0000 (15:46 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 Apr 2020 07:29:13 +0000 (03:29 -0400)
It is not needed here, we are now scrolling
differently.

gtk/gtkemojichooser.c

index 795bb9410cd552ec92ca85dfcf50f13e227cbca5..3e1d65221d97b6370e86161cc0662b518bb4e129 100644 (file)
@@ -772,15 +772,10 @@ setup_section (GtkEmojiChooser *chooser,
                const char     *first,
                const char     *icon)
 {
-  GtkAdjustment *adj;
-
   section->first = first;
 
   gtk_button_set_icon_name (GTK_BUTTON (section->button), icon);
 
-  adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (chooser->scrolled_window));
-
-  gtk_container_set_focus_vadjustment (GTK_CONTAINER (section->box), adj);
   gtk_flow_box_disable_move_cursor (GTK_FLOW_BOX (section->box));
   gtk_flow_box_set_filter_func (GTK_FLOW_BOX (section->box), filter_func, section, NULL);
   g_signal_connect_swapped (section->button, "clicked", G_CALLBACK (scroll_to_section), section);